package com.pactera.madp.cp.api.dto.track;

import cn.hutool.core.date.DateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "行为追踪请求对象")
public class BehaviorTrackDto {

    @NotBlank(message = "企业id不能为空")
    @ApiModelProperty(value = "企业id")
    private Integer corpId;

    @NotBlank(message = "成员不能为空")
    @ApiModelProperty(value = "用户id")
    private String wxUserId;

    @NotBlank(message = "联系人不能为空")
    @ApiModelProperty(value = "外部联系人id")
    private String wxExternalUserid;

    /**
     * marketing-开启了行为跟踪的素材
     * lost-客户删除成员提醒
     * todo-成员在客户画像添加待办事项
     * customForm-自定义表单
     * dailyData-数据日报
     * shopping-金融小店
     * untalk-未交流
     */
    @NotBlank(message = "事件类型不能为空")
    @ApiModelProperty(value = "事件类型")
    private String event;

    @ApiModelProperty(value = "链接")
    private String url;

    @ApiModelProperty(value = "主题")
    private String title;

    @ApiModelProperty(value = "产品计数方式")
    private String productCountType;

    @ApiModelProperty(value = "产品类型")
    private String productType;

    @ApiModelProperty(value = "侧边栏位置")
    private String location;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "代办提醒主键id")
    private Integer todoId;

    @ApiModelProperty(value = "素材id")
    private Integer materialId;

    @ApiModelProperty(value = "素材类型")
    private String materialType;

    @ApiModelProperty(value = "是否发送")
    private Boolean isSend;

    @ApiModelProperty(value = "数据1-日报、2-周报、3-月报类型")
    private Integer dailyType;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

}
